<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/5/24
 * Time: 15:45
 */

namespace App\Business\File;


use App\Business\BusBase;
use App\Business\ReturnResult;
use App\Models\bis_ybj_jssb_files;
use App\Models\files;
use Illuminate\Support\Facades\Storage;

class JSSBUploadFile extends FileBase
{
    protected function Handle()
    {

        //读取文件
        $result=$this->saveFile("public/jssb");

        if(!$result->result) return $result;



        //保存数据
        $jssb=new bis_ybj_jssb_files();
        $jssb->fileID=$result->data->ID;
        $jssb->save();

        return ReturnResult::Success();

    }

    public function GetBusinessName()
    {
        return "上传基数审核文件";
    }


}